/** 
 * Copyright (C), 2010-2012, AIYOU Software Co.,Ltd. ALL RIGHTS RESERVED. 
 * File name:TietiaoService.java
 * Version:1.0
 * Date:2011-12-10
 * Description: 
 * author:TT_LOVE
 */
package com.tietiao.service.tietiao;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.tietiao.dao.model.Tietiao;

public interface TietiaoService {

	/**
	 * 
	 * 功能：添加数据
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-14
	 * 
	 * @param TieTtiao
	 *            贴条对象
	 */
	public void addTieTiao(Tietiao tietiao);

	/**
	 * 
	 * 功能： 贴条操作
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-22
	 * 
	 * @param tietiaos
	 *            需要贴条的数据列表
	 * 
	 */
	@Transactional
	public  void tietiao(List<Tietiao> tietiaos);

	/**
	 * 
	 * 功能：撕条操作
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-22
	 * 
	 * @param commodityIds
	 *            商品ID数组
	 * @param userId
	 *            用户ID
	 */
	@Transactional
	public void shitiao(String[] commodityIds, int userId);

}
